<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>信院租房</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <style>
        body{
            background-image: url(img/a2.png);
            background-position:center;
        }

    </style>
</head>
<body>

<div class="container" style="border: 5px solid #2E9AFE;position: relative;top: 70px;border-radius: 5px;">
    <!-- 在row里面，默认会把一行分为12块 -->
    <div class="row" style="height: 120px;">
        <div class="col-lg-6"></div>
        <div class="col-lg-2"><h1>注册</h1></div>
        <div class="col-lg-4"><h4 style="position: relative;top:25px;color: red;">${ErrorLogin}</h4></div>
    </div>
    <div class="row">
        <form class="form-horizontal" role="form" method="post" action="/signin.do">
            <div class="form-group">
                <label for="name" class="col-sm-4 control-label">名称：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="name" name="pname"
                           placeholder="请设置名称">
                </div>
            </div>
            <div class="form-group">
                <label for="username" class="col-sm-4 control-label">账号：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="username" name="username"
                           placeholder="请设置账号">
                </div>
            </div>
            <div class="form-group">
                <label for="password" class="col-sm-4 control-label">密码：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="password" name="password"
                           placeholder="请设置密码">
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-5 col-sm-10" style="">
                    <button type="submit" class="btn btn-default" style="width: 120px; height: 60px; position: relative;left: 70px;background-color: #00FF00;">注册</button>
                </div>
            </div>
        </form>
    </div>
</div>



</body>

<script>
    // $(function () {
    //     $("#username").blur(checkUsename);
    // });
    // function checkUsename() {
    //     var username = $("#username").val();
    //     alert(username);
    //     var reg = /^[0-9]{6,12}$/;
    //     if(reg.test(username)){
    //         alert("没有问题");
    //     }else{
    //         alert("有问题");
    //     }
    // }

</script>
</html>
